
#include <stdint.h>


#define CREATOR_MFG_TUYA_AUTH				((uint16_t)0x00B1)
#define CREATOR_MFG_TEST_MODE				((uint16_t)0x00B2)
#define CREATOR_MFG_ZEROJOIN				((uint16_t)0x00B3)


// Types for the tokens
#if 1//DEFINETYPES
typedef struct {
  uint8_t auth_info[41];
  uint8_t align[1];
} auth_info_t;

typedef struct {
  uint8_t mode[1];
  uint8_t align[1];
} testmode_t;

typedef struct {
  uint8_t mode[1];
  uint8_t align[1];
} zeroJoin_t;

#endif // DEFINETYPES

#define MFG_TUYA_AUTH_LOCATION               (USERDATA_TOKENS | 0x400)  //   42 bytes
#define MFG_TEST_MODE_LOCATION               (USERDATA_TOKENS | 0x42A)  //   2 bytes
#define MFG_ZEROJOIN_LOCATION              	 (USERDATA_TOKENS | 0x42C)  //   2 bytes

// Actual token definitions
#ifdef DEFINETOKENS
DEFINE_MFG_TOKEN(MFG_TUYA_AUTH, auth_info_t, MFG_TUYA_AUTH_LOCATION, {0})
DEFINE_MFG_TOKEN(MFG_TEST_MODE, testmode_t, MFG_TEST_MODE_LOCATION, {0})
DEFINE_MFG_TOKEN(MFG_ZEROJOIN, zeroJoin_t, MFG_ZEROJOIN_LOCATION, {0})
#endif // DEFINETOKENS

